# Lesson 4: CSS Text & Positioning

CSS can change text alignment, size, and color.

Example:

    <style>
    .centered {
        text-align: center;
        color: yellow;
        font-size: 24px;
    }
    </style>

    <div class="centered">Hello
            Center!</div>

## 1. How do you center text with CSS?

## 2. How do you change the text color?

## 3. Try it yourself!

Create a div with class "centered" and text: "CSS is Fun!"

← Back